export function setBase(data) {
  let list = [
    { label: '预警编号', value: data.warningCode },
    { label: '预警模型', value: data.modelTypeName },
    { label: '预警详情', value: data.detailContent },
    { label: '预警信息接收对象', value: data.openAreaType },
    { label: '预警对象所属区域', value: data.fullPath },
    { label: '预测概率', value: data.predictionProbability },
    { label: '预警等级', value: data.warningLevelName },
    { label: '预警时间', value: data.reportTime },
    { label: '状态', value: data.statusName }
  ]
  return list
}

export function setTypes(data, type) {
  let list = []
  if (type == 1) {
    list = [
      { label: '姓名', value: data.name },
      { label: '性别', value: data.gender },
      { label: '身份证号', value: data.cardNo },
      { label: '联系方式', value: data.telephone },
      { label: '常住地址', value: data.address },
      { label: '家人姓名', value: data.familyName },
      { label: '家人关系类型', value: data.familyRelationshipType },
      { label: '家人联系电话', value: data.familyTelephone },
      { label: '家人身份证号', value: data.familyCardNo },
      { label: '是否二婚', value: data.isRemarry },
      {
        label: '性是否低保在册人员别',
        value: data.isSubsistenceAllowances
      },
      {
        label: '是否低保边缘人员',
        value: data.isSubsistenceAllowancesEdge
      },
      { label: '是否特困人员', value: data.isExceptionalPoverty },
      { label: '是否失业', value: data.isUnemployment },
      { label: '是否远嫁', value: data.isDistantMarriage },
      { label: '是否有行政处罚记录', value: data.isPunishmentRecord },
      { label: '是否有过家庭纠纷', value: data.isFamilyDispute },
      {
        label: '是否有刑事犯罪记录',
        value: data.isCriminalOffenceRecord
      },
      { label: '是否有精神疾病', value: data.isMentalSickness },
      { label: '是否为失信人', value: data.isBreakFaith },
      { label: '是否有吸毒史', value: data.isTakeDrugs },
      { label: '是否为社区矫正人员', value: data.isCommunityCorrection },
      { label: '是否有残疾', value: data.isDisability },
      { label: '是否涉酒涉法', value: data.isDrinkIllegal },
      { label: '是否涉黄', value: data.isInvoluteYellow },
      { label: '是否涉赌', value: data.isInvoluteGambling }
    ]
  } else if ((type == 2)) {
    list = [
      { label: '房屋编码', value: data.houseNumber },
      { label: '房屋地址', value: data.houseAddress },
      { label: '房屋平均用水量', value: data.averageWaterConsumption }
    ]
  } else if ((type == 3)) {
    list = [
      { label: '企业名称', value: data.enterpriseName },
      { label: '企业统一信用编码', value: data.enterpriseCode },
      { label: '成立日期', value: data.establishDate },
      { label: '注册资本', value: data.registerCapital },
      { label: '参保人数', value: data.insuredCount },
      { label: '行业', value: data.industryTypeName },
      { label: '去年资产总额', value: data.lastYearPropertyTotal },
      { label: '公司类型', value: data.companyType },
      { label: '去年负债总额', value: data.lastYearDebtTotal },
      { label: '去年销售总额', value: data.lastYearSellTotal },
      { label: '去年利润总额', value: data.lastYearProfitTotal },
      { label: '去年净利润', value: data.lastYearProfit },
      { label: '去年纳税总额', value: data.lastYearTaxTotal },
      { label: '去年产值', value: data.lastYearProductionTotal },
      { label: '去年存货', value: data.lastYearResidue },
      { label: '去年流动资产合计', value: data.lastYearLiquidAssetsTotal },
      { label: '去年固定资产', value: data.lastYearFixedAssetsTotal },
      { label: '去年无形资产', value: data.lastYearIntangibleAssetsTotal },
      { label: '去年应收账款', value: data.lastYearReceiveAmount },
      { label: '去年流动负债合计', value: data.lastYearLiquidLiabilityTotal },
      { label: '去年从业人数', value: data.lastYearEngageCount },
      { label: '去年企业营运状态', value: data.lastYearProceedStatus },
      { label: '去年平均缴存基数', value: data.lastYearAverageDepositNumber },
      { label: '去年平均缴存比例', value: data.lastYearAverageDepositRatio },
      { label: '去年平均缴存额', value: data.lastYearAverageDepositAmount },
      { label: '去年异常名录', value: data.lastYearAbnormalMember },
      { label: '去年列入严重违法失信名单', value: data.illegalNumber },
      { label: '去年列入失信被执行人', value: data.lastYearsAbnormalMember },
      {
        label: '去年列入重大税收违法黑名单',
        value: data.lastYearsAbnormalMember
      },
      { label: '去年发生质检不合格记录', value: data.checkDisqualificationRecord },
      { label: '三年前司法案件次数', value: data.justiceCaseCount },
      { label: '三年内司法案件次数', value: data.justiceCaseCount },
      { label: '高新企业', value: data.advancedEnterprise },
      { label: '科技企业', value: data.technologyEnterprise },
      { label: '瞪羚企业', value: data.gazelleEnterprise },
      { label: '自身风险数', value: data.riskCoefficient },
      { label: '关联风险数', value: data.relevancyRiskCoefficient },
      { label: '历史风险数', value: data.historyRiskCoefficient },
      { label: '经营风险数', value: data.manageRiskCoefficient },
      { label: '知识产权数', value: data.intellectualPropertyCoefficient },
      { label: '三年前企业变更次数', value: data.frontEnterpriseChangeCount },
      { label: '三年内企业变更次数', value: data.innerEnterpriseChangeCount },
      { label: '三年前被列入异常名单次数', value: data.manyYearsAbnormalMember },
      {
        label: '三年内列入严重违法失信名单次数',
        value: data.innerManyYearsExecuteNumber
      },
      {
        label: '三年前被列入失信被执行人次数',
        value: data.frontManyYearsExecuteNumber
      },
      {
        label: '三年内被列入失信被执行人次数',
        value: data.innerManyYearsExecuteNumber
      },
      {
        label: '三年内纳税信用评价等级不为A级的次数',
        value: data.innerManyYearsLevelDisqualification
      },
      {
        label: '三年前纳税信用评价等级不为A级的次数',
        value: data.frontManyYearsLevelDisqualification
      },
      {
        label: '三年内被列入重大税收违法黑名单次数',
        value: data.innerManyYearsTaxabnormalMember
      },
      {
        label: '三年前被列入重大税收违法黑名单次数',
        value: data.frontManyYearsTaxabnormalMember
      },
      { label: '一定时间退税申报次数', value: data.taxReturnApplyCount },
      { label: '一定时间退税金额', value: data.taxReturnApplyAmount },
      { label: '质检不合格记录数量', value: data.checkDisqualificationCount }
    ]
  } else if (type == 4) {
    list = [
      { label: '企业名称', value: data.companyName },
      { label: '企业统一信用编码', value: data.enterpriseUnifiedCreditCode },
      { label: '成立日期', value: data.registerDate },
      { label: '注册资本', value: data.registerCapital },
      { label: '参保人数', value: data.insuredPeopleNumber },
      { label: '行业类型编码', value: data.industryTypeCode },
      { label: '行业类型名称', value: data.industryTypeName },
      { label: '公司类型', value: data.companyType },
      { label: '工业技校评价等级', value: data.industrialPerformanceEvaluationGrades },
      { label: '三场两所企业类型', value: data.threeGamesTwoBusinessTypes },
      { label: '否使用危险化学品', value: data.isUseHazardousChemicals },
      { label: '是否有重大危险源', value: data.isExistMajorHazardSources },
      { label: '科技企业', value: data.scienceAndTechnologyEnterprise },
      { label: '设计危险工艺数量', value: data.numberOfHazardousProcessesInvolved },
      { label: '企业状态', value: data.enterpriseState },
      { label: '从业人员数量', value: data.practitionerNumber },
      { label: '规模情况', value: data.sizeSituation },
      { label: '是否涉及重点监管危险工艺', value: data.isInvolvesFocusingOnRegulation },
      {
        label: '是否涉及重点监管危险化工工艺',
        value: data.isInvolvesKeySupervision
      },
      { label: '安全生产人数', value: data.safeWorkersNumber },
      { label: '作业场所类型', value: data.isInvoluteGambling },
      { label: '3年来事故情况', value: data.threeYearAccidentSituation },
      { label: '3年来事故发生次数', value: data.threeYearAccidentHappenNumber },
      { label: '3年来事故重伤人数', value: data.threeYearAccidentSevereWoundPersonNumber },
      { label: '3年来事故失踪人数', value: data.threeYearAccidentPersonNumber },
      { label: '3年来事故受伤人数', value: data.threeYearAccidentWoundPersonNumber },
      { label: '3年来事故经济损失', value: data.threeYearAccidentFinancialLoss },
      { label: '历史总死亡人数', value: data.historicalTotalDeathNumber },
      { label: '历史总重伤人数', value: data.historicalTotalSevereWoundNumber },
      { label: '历史下落不明人数', value: data.historicalUnaccountedNumber },
      { label: '历史直接经济损失', value: data.historicalDirectFinancialLoss },
      { label: '是否有安全隐患', value: data.isExistSecurityRisks },
      {
        label: '安全生产不良记录黑名单信息',
        value: data.poorProductionRecordsBlacklistInformation
      },
      { label: '重大危险源标识', value: data.majorHazardSouresIdentification },
      { label: '重大危险源级别', value: data.majorHazardSourcesLevel },
      { label: '周边500米常驻人口数量', value: data.fiveHundredMetersResidentPopulationNumber }
    ]
  } else if (type == 5) {
    list = [
      { label: '高发事件类型', value: data.problemsType },
      { label: '预测发生日期', value: data.forecastPeriod },
      { label: '预测发生数量', value: data.forecastQuantity },
    ]
  }
  return list
} 